home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 7
/
Amiga Format AFCD07 (Dec 1996, Issue 91).iso
/
serious
/
shareware
/
programming
/
ixemul-complete
/
ixemul
/
stack
/
stkchk_d0.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-08
|
252b
|
21 lines
#include "a4.h" /* for the A4 macro */
asm("
.text
.even
.globl ___stkchk_d0
.globl ___stkchk_0
___stkchk_d0:
negl d0
addl sp,d0
cmpl "A4(___stk_limit)",d0
jcs ___stkovf
rts
___stkchk_0:
cmpl "A4(___stk_limit)",sp
jcs ___stkovf
rts
");